package tragame.gui;

import java.awt.Color;
import java.awt.Dimension;

import javax.swing.Icon;
import javax.swing.JButton;

public class JButton2 extends JButton {
	
	private static final long serialVersionUID = 1L;

	public JButton2 (Icon icone, Icon icone2, int x, int y) {
		
		super();
		this.setPreferredSize(new Dimension(x, y));
		this.setMaximumSize(new Dimension(x, y));
		this.setMinimumSize(new Dimension(x, y));
		this.setIcon(icone);
		this.setRolloverIcon(icone2);
		this.setOpaque(false);
		this.setBackground(new Color(0,0,0,0));
		this.setFocusPainted(false);
		this.setBorderPainted(false);
		this.setContentAreaFilled(false);
	}
}
